#include <bits/stdc++.h>
using namespace std;
void color(int s[200000],int n)
{
    int c=0;
    for(int i=0;i<n;i+=1)
    {
        c+=1;
    }
}
int s[200000];
int main()
{
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    int t,n;
    cin>>t;
    for(int i=0;i<t;i+=1)
    {
        cin>>n;
        for(int j=0;j<n;j+=1)
        {
            int x;
            cin>>x;
            s[j]==x;
        }
    cout<<0<<endl;
    }
    return 0;
}
